// 官方通信
.message {
  border: 1px solid #ccc;
  padding-right: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  >div{
    min-width: 800px;
    >table{
      width: 100%;
      .col-a{
        width: 65%;
      }
      .col-c{
        width: 100px;
      }
      tbody td{
        overflow: hidden;
        vertical-align: middle;
        >div{
          flex-direction: row;
          justify-content: flex-start;
          display: flex;
        }
        .icon_emotion_sprite {
          width: 46px;
          height: 46px;
          vertical-align: middle;
          display: inline-block;
          background: transparent url(../images/emotion_sprites.png) no-repeat 0 0;
          -webkit-background-size: 65.5px auto;
          background-size: 65.5px auto;
        }
        img{
          width: 50px;
          height: 50px;
          & + div{
            p{
              white-space: nowrap;
              text-overflow: ellipsis;
              overflow: hidden;
            }
          }
        }
      }
    }
    &.messageTbody{
      width: calc(~"100% + 7px");
      min-width: calc(~"800px + 7px");
      max-height: 757px;
      overflow-x: hidden;
      overflow-y: scroll;
    }
  }
}

// 对话框
.chatContent {
  height: 500px;
  overflow-y: auto;
  padding-right: 7px;
  .icon_emotion_sprite {
    width: 46px;
    height: 46px;
    vertical-align: middle;
    display: inline-block;
    background: transparent url(../images/emotion_sprites.png) no-repeat 0 0;
    -webkit-background-size: 65.5px auto;
    background-size: 65.5px auto;
  }
  .customer {
    display: flex;
    flex-direction: row;
    position: relative;
    block{
      max-width: 80%;
      text-align: left;
      p{
        margin-bottom: 0;
        >img{
          max-width: 300px;
          height: 100px;
          border-radius: 10px;
          cursor: pointer;
        }
        video{
          max-width: 500px;
          height: 300px;
        }
      }
    }
    >img {
      width: 50px;
      height: 50px;
      border-radius: 25px;
      flex-shrink: 0;
      margin-top: 10px;
    }
    div {
      border: 1px solid #c0bfc5;
      border-radius: 5px;
      padding: 5px;
      height: fit-content;
      letter-spacing: 2px;
      text-align: left;
      min-height: 30px;
      .emo{
        width: 35px;
        height: 35px;
        padding: 3px;
      }
    }
    .hook {
      position: absolute;
      left: 65px;
      top: 40px;
      transform: rotate(-90deg);
      .hook_top {
        top: -16px;
        border-color: transparent transparent #c0bfc5;
      }
      .hook_dec {
        position: absolute;
        left: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 8px;
      }
      .hook_btm {
        top: -15px;
        border-color: transparent transparent #fff;
      }
    }
  }
  .server {
    display: flex;
    flex-direction: row-reverse;
    position: relative;
    block{
      max-width: 80%;
      text-align: right;
      p{
        margin-bottom: 0;
        >img{
          max-width: 300px;
          height: 100px;
          border-radius: 10px;
          cursor: pointer;
        }
        video{
          max-width: 500px;
          height: 300px;
        }
      }
    }
    >img {
      width: 50px;
      height: 50px;
      border-radius: 25px;
      flex-shrink: 0;
      margin-top: 10px;
    }
    div {
      border: 1px solid #c0bfc5;
      border-radius: 5px;
      padding: 5px;
      height: fit-content;
      letter-spacing: 2px;
      text-align: left;
      min-height: 30px;
      .emo {
        width: 35px;
        height: 35px;
        padding: 3px;
      }
    }
    .hook {
      position: absolute;
      right: 65px;
      top: 25px;
      transform: rotate(90deg);
      .hook_top {
        top: -16px;
        border-color: transparent transparent #c0bfc5;
      }
      .hook_dec {
        position: absolute;
        left: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 8px;
      }
      .hook_btm {
        top: -15px;
        border-color: transparent transparent #fff;
      }
    }
  }
}

.sendMessage {
  .emotion_editor {
    position: relative;
    z-index: 1;
    border: 1px solid #e7e7eb;
    .edit_area {
      padding: 14px 20px;
      outline: 0;
      word-wrap: break-word;
      word-break: break-all;
      background-color: #fff;
      height: 188px;
      border: none;
      width: 100%;
      .icon_emotion_sprite {
        cursor: pointer;
        width: 46px;
        height: 46px;
        vertical-align: middle;
        display: inline-block;
        background: transparent url(../images/emotion_sprites.png) no-repeat 0 0;
        -webkit-background-size: 65.5px auto;
        background-size: 65.5px auto;
      }
    }
    .editor_toolbar {
      padding: 0 20px;
      line-height: 36px;
      background-color: #fff;
      border-top: 1px solid #e7e7eb;
      .icon_emotion {
        width: 25px;
        height: 25px;
        vertical-align: middle;
        display: inline-block;
        margin-right: 10px;
      }
      .emotion_switch{
        background: url(../images/icons.png) 0 -190px no-repeat;
      }
      .pic_switch{
        background: url(../images/icons.png) 0 -77px no-repeat;
      }
      .emotion_wrp {
        display: none;
        position: absolute;
        width: 701px;
        top: 42px;
        left: -1px;
        .hook {
          position: absolute;
          left: 39px;
          top: 151px;
          transform: rotate(180deg);
          .hook_top {
            top: -16px;
            border-color: transparent transparent #c0bfc5;
          }
          .hook_dec {
            position: absolute;
            left: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 8px;
          }
          .hook_btm {
            top: -15px;
            border-color: transparent transparent #f6f6f6;
          }
        }
        .emotions {
          overflow: hidden;
          border-top: 1px solid #c0bfc5;
          border-right: 1px solid #c0bfc5;
          background-color: #e7e7eb;
          padding: 0;
          .emotions_item {
            float: left;
            width: 50px;
            height: 50px;
            line-height: 47px;
            font-size: 0;
            text-align: center;
            border-bottom: 1px solid #c0bfc5;
            border-left: 1px solid #c0bfc5;
            background-color: #fff;
            .icon_emotion_sprite {
              cursor: pointer;
              width: 46px;
              height: 46px;
              vertical-align: middle;
              display: inline-block;
              background: transparent url(../images/emotion_sprites.png) no-repeat 0 0;
              -webkit-background-size: 65.5px auto;
              background-size: 65.5px auto;
            }
          }
        }
      }
    }
  }
}